<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class PublicController extends Controller
{
    public function upload(Request $request){

        $path = $request->file('file')->store('avatar');
        $path = env('FILE_ENDPOINT') . '/' . $path;
        return resSucc($path, '上传成功');
    }
}
